package com.jj.service;

import com.jj.annotation.LogAnnotation;
import org.springframework.stereotype.Service;

@Service
public class DemoService02 {

    @LogAnnotation("demoService02")
    public void addLog(String str){
//        String s = str + ",hello";
//        System.out.println(s);
//        System.out.println("addLog，空方法");
    }

    public String demo02(String str){
        String s = str + ",hello";
        System.out.println(s);
        addLog("核心日志");  // 不会触发切面，因为手动调用没有被spring容器接管
        return s;
    }
}
